package com.itheima.dao;

import java.util.HashMap;
import java.util.HashSet;

public class HashsetTest {
    public static void main(String[] args) {
        HashSet<Student> hs = new HashSet<>();
        HashMap<Object, Object> hm = new HashMap<>();


        Student s1= new Student("xiaohei",23);
        Student s2 = new Student("xiaohei",23);
        Student s3 = new Student("xiaolan",22);

        hs.add(s1);
        hs.add(s2);
        hs.add(s3);


//        Object put = hm.put(s1);
        for (Student student : hs) {
            System.out.println(student);
        }
    }
}
